#!/usr/bin/env python

import wx.stc as stc

class Extend():
    def __init__(self):
        self.name='html'
    
    def getStyles(self):
        style={
          0:"fore:#000000",
          1:"fore:#000088",#keyword   
          2:"fore:#FF00FF",#default
          3:"fore:#993399",
          4:"fore:#00FFFF", #atribute
          5:"fore:#000088",
          6:"fore:#009900",
          7:"fore:#FF6600",
          8:"fore:#FF0066",
          9:"fore:#666666", #error??
          10:"fore:#FF6666",
          11:"fore:#FF66FF",
          12:"fore:#0000CC",
          13:"fore:#0000CC", 
          14:"fore:#0000FF",
          15:"fore:#0000FF",
          16:"fore:#0000FF",
          17:"fore:#006600",
          18:"fore:#FF0000",
          19:"fore:#00FF00",
          20:"fore:#FFFF00",
          21:"fore:#FF00FF",
          22:"fore:#00FFFF",
          23:"fore:#FF0000", #{?
          24:"fore:#00FF00",
          25:"fore:#00FF00",
          26:"fore:#00FF00",
          27:"fore:#00FF00",
          28:"fore:#00FF00",
          }
        return style
    
    def getTemplates(self):
        return []
    
    def isReady(self):
        return True
    
    def start(self):
        pass
    
    def stop(self):
        pass
        
    def getSourceFileNames(self): 
        return ["*.html","*.htm"]
        
    def getLexer(self):
        return stc.STC_LEX_HTML
    
    def read(self,text,path):
        return
        
    def getKeyWord(self):
        keywords={}
        keywords[0]=["abbr","acronym","address","a","applet","area","b","base","basefont","bdo","bgsound","big","blink","blockquote","body","br","button","caption","center","cite","code","col","colgroup","commment","dd","del","dfn","dir","div","dl","dt","em","embed","fieldset","font","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","hr","html","i","iframe","img","input","ins","isindex","kbd","label","layer","legend","li","link","map","marquee","menu","meta","nextid","nobr","noembed","noframes","noscript","object","ol","option","p","param","pre","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","ul","var","wbr","xmp"]
        keywords[1]=["function","if","new"]
        return keywords